package com.qadev.appergodic.utils;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

/**
 * Created by wjp on 2019/8/7.
 */
public class IOUtils {
    //将string转存成文本
    public void strChangeWord(String path,String str){
        try {
            OutputStreamWriter out =new OutputStreamWriter(new FileOutputStream(path));
            out.write(str);
            out.flush();
            out.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
